<ion-header [translucent]="true">
  <ion-toolbar>
    <ion-title>
      esp控制小灯
    </ion-title>
  </ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true">
  <ion-button (click)="open()" >开灯</ion-button>
  <ion-button (click)="close()" >关灯</ion-button>
</ion-content>
